//
//  UINavigationController+CLExtension.h
//  CLExtension
//
//  Created by CharlieLiao on 2017/7/3.
//  Copyright © 2017年 Charlie. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UINavigationController (CLExtension)

/**
 * pop到导航器堆栈中指定的VC类。如果没有，则返回上一层
 *
 * @param  aClass 目标VC类
 * @param  animated 是否动画切换VC
 */
- (nullable NSArray<__kindof UIViewController *> *)popToClass:(Class _Nonnull)aClass animated:(BOOL)animated;

@end
